﻿using System;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///权限表
    ///</summary>
    [SugarTable("base_permission")]
    public partial class BasePermission
    {
        public BasePermission()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        [JsonProperty("id")]
        public int Id { get; set; }

        /// <summary>
        /// Desc:行业类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "industry_type")]
        [JsonProperty("industry_type")]
        public int IndustryType { get; set; }

        /// <summary>
        /// Desc:唯一标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "action_key")]
        [JsonProperty("action_key")]
        public string ActionKey { get; set; }

        /// <summary>
        /// Desc:属于大的分类，可能是Controller、大的DIV、或菜单组
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "node")]
        [JsonProperty("node")]
        public string Node { get; set; }

        /// <summary>
        /// Desc:权限的类型：url、页面元素、菜单
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "type")]
        [JsonProperty("type")]
        public string Type { get; set; }

        /// <summary>
        /// Desc:权限的类型：url、页面元素、菜单
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "path")]
        [JsonProperty("path")]
        public string Path { get; set; }

        /// <summary>
        /// Desc:菜单描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "name")]
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// Desc:父ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "parent_id")]
        [JsonProperty("parent_id")]
        public int ParentId { get; set; }

        /// <summary>
        /// Desc:排序ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "sort_id")]
        [JsonProperty("sort_id")]
        public int SortId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "created")]
        [JsonProperty("created")]
        public DateTime Created { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "updated")]
        [JsonProperty("updated")]
        public DateTime Updated { get; set; }

    }
}
